/**  
 * @date 2023-11-24 
 * @author Zhang Yu
 */
package com.jwt.shiro.demo.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**  
 * @description: 自定义验证Token类
 */
public class JWTToken implements AuthenticationToken{

	private String token;
	
	public JWTToken(String token) {
		super();
		this.token = token;
	}

	@Override
	public Object getPrincipal() {
		return token;
	}

	@Override
	public Object getCredentials() {
		return token;
	}

}
